import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Gao zhao xu
 * Date: 2023-11-06
 * Time: 9:39
 */
public class Test2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int flg = 0;
        while (in.hasNextLine()){
            String arr = in.nextLine();
            for (int i = 0; i < arr.length(); i++) {
                char ch = arr.charAt(i);
                if (flg == 2) {
                    flg = 0;
                    continue;
                }
                if (i < arr.length() - 1) {
                    char ch1 = arr.charAt(i + 1);
                    if (ch == '/' && ch1 == '*') {
                        flg = 1;
                    } else if (ch == '*' && ch1 == '/') {
                        flg = 2;
                    }

                }
                if (flg == 0) {
                    System.out.print(ch);
                }
            }
            if (flg == 0) {
                System.out.println();
            }
        }
    }
}
